#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<assert.h>
typedef int x;
typedef struct stack {
	x* a;
	int top;
	int capacity;
}ST;
void StackInit(ST* ps);
void StackDestroyed(ST* ps);
void StackPush(ST* ps, x a);
void StackPop(ST* ps);
x StackTop(ST* ps);
int StackSize(ST* ps);
bool StackEmpty(ST* ps);